<template>
    <div class="page-content">
        <div class="header" style="margin-bottom: 1.5rem">
            <h3>微信公众号</h3>
        </div>
        <el-tabs v-model="tableLayout" class="demo-tabs" @tab-click="handleTabChange">
            <el-tab-pane label="基本配置" name="1"> </el-tab-pane>
            <!-- <el-tab-pane label="支付配置" name="2"> </el-tab-pane> -->
            <el-tab-pane label="自定义菜单" name="5"> </el-tab-pane>
            <el-tab-pane label="关键词回复" name="2"> </el-tab-pane>
            <el-tab-pane label="关注回复" name="3"> </el-tab-pane>
            <el-tab-pane label="默认回复" name="4"> </el-tab-pane>

            <!-- <el-tab-pane label="隐私保护指引设置" name="6"> </el-tab-pane>
            <el-tab-pane label="体验者管理" name="7"> </el-tab-pane> -->
        </el-tabs>


        <gzhComponent v-if="tableLayout === '1'"></gzhComponent>

        <!-- <pay-setting v-if="tableLayout === '2'"></pay-setting> -->

        <replay v-if="tableLayout === '2' || tableLayout === '3' || tableLayout === '4'" :tableLayout="tableLayout"
            :key="replayKey">
        </replay>
        <customizeMenu v-if="tableLayout === '5'"/>

        <!-- <privacy-setting v-if="tableLayout === '6'"></privacy-setting> -->

        <!-- <experiencer-management v-if="tableLayout === '7'"></experiencer-management> -->
    </div>
</template>

<script setup lang="ts">
import gzhComponent from './components/gzhComponent.vue'
import paySetting from './components/paySetting.vue'
import experiencerManagement from './components/experiencerManagement.vue'
import privacySetting from './components/privacySetting.vue'
import replay from './components/replay.vue'
import customizeMenu from './components/customizeMenu.vue'

const replayKey = ref(1)
const tableLayout = ref('1')

const handleTabChange = () => {
    replayKey.value = new Date().getTime()
}

</script>

<style lang="scss" scoped>
.page-content {
    width: 100%;
}
</style>